package com.roncoo.education.course.service.dao.impl.mapper.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author hhg
 * @since 2020-04-07
 */
public class TopicAnswer extends Model<TopicAnswer> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户答案
     */
    private String answer;

    /**
     * 题目Id
     */
    private Long topicId;

    /**
     * 试卷ID（统计人数使用）
     */
    private Long courseTopicId;

    /**
     * 创建时间
     */
    private LocalDateTime gmtCreate;

    private String userNo;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public Long getTopicId() {
        return topicId;
    }

    public TopicAnswer setTopicId(Long topicId) {
        this.topicId = topicId;
        return this;
    }

    public Long getCourseTopicId() {
        return courseTopicId;
    }

    public void setCourseTopicId(Long courseTopicId) {
        this.courseTopicId = courseTopicId;
    }

    public LocalDateTime getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(LocalDateTime gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public String getUserNo() {
        return userNo;
    }

    public TopicAnswer setUserNo(String userNo) {
        this.userNo = userNo;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "TopicAnswer{" +
        "id=" + id +
        ", answer=" + answer +
        ", topicIc=" + topicId +
        ", courseTopicId=" + courseTopicId +
        ", gmtCreate=" + gmtCreate +
        "}";
    }
}
